package com.ethink.platform.controller.mdm;

import com.ethink.framework.common.web.BaseController;
import com.ethink.framework.common.web.response.CommonResponse;
import com.ethink.mdm.api.LegalCurrencyExchangeRateFacade;
import com.ethink.mdm.api.response.LegalCurrencyExchangeRateGetSummaryResponse;
import io.swagger.v3.oas.annotations.Operation;
import io.swagger.v3.oas.annotations.tags.Tag;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 * @Author: lzy
 * @Date: Created in 2022/12/8 16:09
 * ModifiedBy:
 * Version:
 */
@Tag(name = "LegalCurrencyExchangeRateController", description = "法币汇率表 Controller")
@RestController
@Slf4j
@RequestMapping("platform-server/v1/mdm-service")
public class LegalCurrencyExchangeRateController extends BaseController {
    @Autowired
    private LegalCurrencyExchangeRateFacade legalCurrencyExchangeRateFacade;

    @Operation(summary = "汇率信息")
    @GetMapping("/legalCurrencyExchangeRate/getSummary")
    CommonResponse<LegalCurrencyExchangeRateGetSummaryResponse> getLegalCurrencyExchangeRateSummary() {
        return succeedWith(legalCurrencyExchangeRateFacade.getLegalCurrencyExchangeRateSummary());
    }
}
